package com.swss.g.user.service;

import java.util.List;

import com.swss.g.base.BaseService;
import com.swss.g.user.bean.Module;
import com.swss.g.user.bean.Popedom;
import com.swss.g.user.bean.Role;
import com.swss.g.user.bean.RoleUser;
import com.swss.g.user.bean.User;
import com.swss.util.Pagination;

public interface UserService extends BaseService<User> {

	public void saveRoleUser(RoleUser roleUser) throws Exception;

	public void updateRoleUser(RoleUser roleUser) throws Exception;

	public RoleUser findRoleUserById(Integer roleUserId) throws Exception;

	public List<RoleUser> findRoleUser(RoleUser roleUser) throws Exception;

	public RoleUser findOneRoleUser(Integer ruId) throws Exception;

	public Role findRoleByUserId(Integer userId) throws Exception;

	public Pagination<User> findAllUser(Pagination pagination) throws Exception;
	
	public Pagination<User> findUserByLike(Pagination pagination,User user,String deptNo) throws Exception;

	public List<Module> findModulePopesByUserId(Integer userId) throws Exception;
	
	public User login(User user) throws Exception;
}
